package com.ctgu.蓝桥杯真题.B组2020第2场;

import java.io.*;

/**
 * @author: Backdiy
 * @data: 2021/4/7 14:10
 * @desc:
 */
public class F成绩分析 {
    public static void main(String[] args) throws IOException {
        int n = Input.nextInt();
        int max = 0;
        int min = 101;
        double sum = 0, ave;
        for (int i = 0; i < n; i++) {
            int x = Input.nextInt();
            max = Math.max(x, max);
            min = Math.min(x, min);
            sum += x;
        }
        ave = sum / n;
        Input.out.println(max);
        Input.out.println(min);
        Input.out.printf("%.2f", ave);
//        Input.out.format("%.2f",ave);
//        Input.out.printf(String.format("%.2f",ave));
        Input.out.flush();
    }

    static class Input {
        static StreamTokenizer streamTokenizer = new StreamTokenizer(new BufferedReader(new InputStreamReader(System.in)));
        static PrintWriter out = new PrintWriter((new OutputStreamWriter(System.out)));
        static BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));

        static int nextInt() throws IOException {
            streamTokenizer.nextToken();
            return (int) streamTokenizer.nval;
        }

        static double nextDouble() throws IOException {
            streamTokenizer.nextToken();
            return streamTokenizer.nval;
        }

        static long nextLong() throws IOException {
            streamTokenizer.nextToken();
            return (long) streamTokenizer.nval;
        }

        static String nextLine() throws IOException {
            return bufferedReader.readLine();
        }

        static char next() throws IOException {
            return (char) bufferedReader.read();
        }
    }
}
